package com.ddh.ddhsanguogame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 同盟信息表
 * </p>
 *
 * @author ddh
 * @since 2025-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("card_alliance")
@ApiModel(value="CardAlliance对象", description="同盟信息表")
public class CardAlliance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "同盟唯一ID，主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "同盟名称，唯一且非空")
    private String name;

    @ApiModelProperty(value = "同盟描述，可为空")
    private String description;

    @ApiModelProperty(value = "同盟创建时间")
    private LocalDateTime createdAt;


}
